<?php
require_once "vendor/autoload.php";
define('BASE_PATH',str_replace('\\','/',realpath(dirname(__FILE__).'/'))."/");
function loadApp($name){
	$path = str_replace('\\','/',BASE_PATH.'/'.$name.'.php');
	if(is_file($path)){
		return include_once "{$path}";
	}
}
spl_autoload_register("loadApp");